import os
#file = open('1.txt','r',encoding='utf-8')
#print(file.read())
#file.close()

file2 = open('1.txt','w',encoding='utf-8')
file2.write('hello world')
file2.close()

#file3 = open('1.txt','a',encoding='utf-8')
#file3.write('\nhello world222')
#file3.close()

#with open('./5.text','r',encoding='utf-8') as file4:
 #   #print(file4.read())
 #   while True:
 #       line = file4.readline()
 #       if not line:
 #           break
 #       print(line.strip())

with open('./5.text','r',encoding='utf-8') as file4:
    str4 = '\nhello world4'
    file4.write(str4)
    list4 = ['\nhellod world5','\nhello world6']
    file4.writelines(list4)

    print("---------------------")
    with open('./1.png','rb') as file:
        with open('./2.png', 'rb') as file2:
            while True:
                data = file.read(1024)
                file2.write(data)
                if not data:0
                    break

#tell()
#with open('./1.text','r',encoding='utf-8') as file:
# print(file.tell)
#file.seek(0)
#print(file.te]oooooll)


#os.remove('./2.png')
#os.remove('.4442.png')
#os.rename(src'1.png',dst'a.png')
#os.mkdir('test')
#os.rmdir('test')
result = os.getcwd()
print(result)